package com.bayleaf.domain;

import com.bayleaf.core.BayleafAbstractVO;

public class DictionaryVO extends BayleafAbstractVO implements Comparable<DictionaryVO> {
	
	/**
	 * 표준 용어(한글)
	 */
	private String stdName;
	/**
	 * 영문명
	 */
	private String stdNameEng;
	/**
	 * 설명
	 */
	private String stdComment;
	/**
	 * 추천검색어 판별을 위한 string간 차이의 정도 
	 */
	private int distance;
	

	public String getStdName() {
		return stdName;
	}
	public void setStdName(String stdName) {
		this.stdName = stdName;
	}
	public String getStdNameEng() {
		return stdNameEng;
	}
	public void setStdNameEng(String stdNameEng) {
		this.stdNameEng = stdNameEng;
	}
	public String getStdComment() {
		return stdComment;
	}
	public void setStdComment(String stdComment) {
		this.stdComment = stdComment;
	}
	public int getDistance() {
		return distance;
	}
	public void setDistance(int distance) {
		this.distance = distance;
	}
	@Override
	public String toString() {
		return "DictionaryVO [stdName=" + stdName + ", stdNameEng="
				+ stdNameEng + ", stdComment=" + stdComment + "]";
	}
	@Override
	public int compareTo(DictionaryVO arg0) {
		
		return this.distance - arg0.getDistance();
	}

}
